#ifndef HANDLERUPDATE_H
#define HANDLERUPDATE_H

#include <QObject>
#include "Aria.h"
#include "ArNetworking.h"


class handlerUpdate : public QObject
{
    Q_OBJECT
public:
    explicit handlerUpdate(QObject *parent = 0,ArClientBase *client=0);
    
signals:
    void signalUpdateNumbers(double,double,double,double,int,int);
    void signalUpdateStrings(char *,char *);
    void signalUpdateBatteryInfo(double,double);


public slots:
    
private:
    ArClientBase *handledClient;
    ArFunctor1C<handlerUpdate,ArNetPacket *> updateNumbersCB;
    ArFunctor1C<handlerUpdate,ArNetPacket *> updateStringsCB;
    ArFunctor1C<handlerUpdate,ArNetPacket *> updateBatteryInfoCB;


    void updateNumbers(ArNetPacket *packet);
    void updateStrings(ArNetPacket *packet);
    void updateBatteryInfo(ArNetPacket *packet);
};

#endif // HANDLERUPDATE_H
